interface NavItem {
  label: string;
  url: string;
  hidden?: boolean;
  children?: NavItem[];
}

export const useNav = () => {
  return useState("nav", (): NavItem[] => [
    {
      label: "关于我们",
      url: "/about",
      children: [
        { label: "公司简介", url: "/about/overview" },
        { label: "发展历程", url: "/about/history" },
        { label: "资质荣誉", url: "/about/honor" },
      ],
    },
    {
      label: "产品中心",
      url: "/product",
      children: [],
    },
    {
      label: "解决方案",
      url: "/solution",
      children: [
        // { label: "解决方案", url: "/solution" },
        { label: "应用方案", url: "/solution/application-case" },
        { label: "客户案例", url: "/solution/customer-case" },
      ],
    },
    {
      label: "服务支持",
      url: "/service-support",
      children: [
        { label: "服务支持", url: "/service-support" },
        { label: "资料下载", url: "/service-support/download" },
        { label: "视频中心", url: "/service-support/video" },
        { label: "在线问答", url: "/service-support/question" },
      ],
    },
    {
      label: "新闻资讯",
      url: "/news",
      children: [
        { label: "新闻资讯", url: "/news/list" },
        { label: "公司资讯", url: "/news/company" },
        { label: "展会活动", url: "/news/exhibition" },
      ],
    },
    {
      label: "联系我们",
      url: "/contact",
      children: [
        { label: "联系我们", url: "/contact" },
        { label: "人才招聘", url: "/contact/recruitment" },
      ],
    },
  ]);
};
